
<template>
<div>
  <component :is="currentView" :user="user" :data="data"></component>
  <comp-menu ></comp-menu>

</div>
</template>

<script>
import CompMenu from '../components/menu.vue'
import CompPage from './page.vue'
import CompRgxzagree from './process/rgxzagree.vue'
import CompCheckhouse from './process/checkhouse.vue'
import CompYhgs from './process/yhgs.vue'
import CompChoosearea from './process/choosearea.vue'
import CompChoosecar from './process/choosecar.vue'
import CompTrade from './process/trade.vue'
import {compNav} from '../public/js/utils.js'
import Swal from 'sweetalert'
export default {
  data:function () {
    compNav(this,'nav')
    return {
      currentView:'comp-page',
      history:[{compName:'comp-page'}],
      currentIndex:0,
      data:{}
    }
  },
  props:['user'],
  components:{
    CompMenu,
    CompRgxzagree,
    CompCheckhouse,
    CompChoosearea,
    CompChoosecar,
    CompTrade,
    CompYhgs,
    CompPage
  },
  mounted:async function(){
    // const user = await get('/users/info')
    // this.user=user
  },
  methods:{

  }

}
</script>
